package com.xing.Common.Service.Imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.xing.Common.Dao.CommonDao;
import com.xing.Common.Service.CommonService;

/**
*@author xingxing
*@version 
*@time 2017年10月19日 下午9:47:40 
*class explain：service 层 接口
*/
public class CommonServiceImp implements CommonService{
	
	@Autowired
	protected CommonDao commonDao;
	@Override
	public boolean saveorupd(Object obj) {
		return commonDao.saveorupd(obj);
	}

	@Override
	public boolean del(Object obj) {
		// TODO Auto-generated method stub
		return commonDao.del(obj);
	}

	@Override
	public List<?> objectfind(Object obj) {
		// TODO Auto-generated method stub
		return commonDao.objectfind(obj);
	}

	@Override
	public List<?> objectfindall(Class clazz) {
		// TODO Auto-generated method stub
		return commonDao.objectfindall(clazz);
	}

	@Override
	public List createSql(String sql) {
		// TODO Auto-generated method stub
		return commonDao.createSql(sql);
	}

	public CommonServiceImp() {
		System.out.println("----CommonServiceImp----");
	}
}
